home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / ListPeer.java < prev    next >
Text File  |  1998-09-22  |  1KB  |  55 lines

  1. /*
  2.  * @(#)ListPeer.java    1.10 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14. package java.awt.peer;
  15.  
  16. import java.awt.Dimension;
  17.  
  18. public interface ListPeer extends ComponentPeer {
  19.     int[] getSelectedIndexes();
  20.     void add(String item, int index);
  21.     void delItems(int start, int end);
  22.     void removeAll();
  23.     void select(int index);
  24.     void deselect(int index);
  25.     void makeVisible(int index);
  26.     void setMultipleMode(boolean b);
  27.     Dimension getPreferredSize(int rows);
  28.     Dimension getMinimumSize(int rows);
  29.  
  30.     /**
  31.      * DEPRECATED:  Replaced by add(String, int).
  32.      */
  33.     void addItem(String item, int index);
  34.  
  35.     /**
  36.      * DEPRECATED:  Replaced by removeAll().
  37.      */
  38.     void clear();
  39.  
  40.     /**
  41.      * DEPRECATED:  Replaced by setMultipleMode(boolean).
  42.      */
  43.     void setMultipleSelections(boolean v);
  44.  
  45.     /**
  46.      * DEPRECATED:  Replaced by getPreferredSize(int).
  47.      */
  48.     Dimension preferredSize(int v);
  49.  
  50.     /**
  51.      * DEPRECATED:  Replaced by getMinimumSize(int).
  52.      */
  53.     Dimension minimumSize(int v);
  54. }    
  55.